/**
 * Sep 17, 2013 4:52:06 PM
 * com.kratonsolution.belian.security.api.dao
 * SecurityDao.java
 */
package com.kratonsolution.belian.security.api.dao;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * @author Agung Dodi Perdana
 * @email agung.dodi.perdana@gmail.com
 * @Version Sinch 0.0.1
 */
public abstract class SecurityDao
{
    @Autowired
    @Qualifier("securitySessionFactory")
    protected SessionFactory factory;

    protected Session getSession()
    {
        return factory.getCurrentSession();
    }
}
